void
st_theme_node_transition_paint (StThemeNodeTransition *transition,
+ CoglFramebuffer *framebuffer,
ClutterActorBox *allocation,
guint8 paint_opacity)
{
StThemeNodeTransitionPrivate *priv = transition->priv;
- CoglFramebuffer *fb = cogl_get_draw_framebuffer ();
CoglColor constant;
float tex_coords[] = {
paint_opacity, paint_opacity,
paint_opacity, paint_opacity);
- cogl_framebuffer_draw_multitextured_rectangle (fb, priv->material,
+ cogl_framebuffer_draw_multitextured_rectangle (framebuffer,
+ priv->material,
priv->offscreen_box.x1,
priv->offscreen_box.y1,
priv->offscreen_box.x2,
StThemeNode *new_node);
void st_theme_node_transition_paint (StThemeNodeTransition *transition,
+ CoglFramebuffer *framebuffer,
ClutterActorBox *allocation,
guint8 paint_opacity);
st_widget_paint_background (StWidget *widget)
{
StWidgetPrivate *priv = st_widget_get_instance_private (widget);
+ CoglFramebuffer *framebuffer;
StThemeNode *theme_node;
ClutterActorBox allocation;
guint8 opacity;
+ framebuffer = cogl_get_draw_framebuffer ();
theme_node = st_widget_get_theme_node (widget);
clutter_actor_get_allocation_box (CLUTTER_ACTOR (widget), &allocation);
if (priv->transition_animation)
st_theme_node_transition_paint (priv->transition_animation,
+ framebuffer,
&allocation,
opacity);
else
st_theme_node_paint (theme_node,
current_paint_state (widget),
- cogl_get_draw_framebuffer (),
+ framebuffer,
&allocation,
opacity);
}